Part Number Hot Search : 
ACD090 BL1640 LD4710 M29W640D A143E 1N5916 BB1J3PM W79E834
Product Description
Full Text Search
 

To Download CH5001A Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  CH5001A 201-0000-032 rev 3.0, 6/2/99 1 chrontel 3 cmos color digital video camera features ? 352 x 288 active pixel array with color filters, 1/3 inch lens format ? programmable formats cif 352x288, qcif 176x144, ccir601 704x288 ? digital output ccir601 4:2:2 (8-bit or 16-bit) ? multidimensional automatic shutter control ? below 5 lux sensitivity ? programmable i 2 c serial bus control : - frame rate: 30fps-1fps in eight steps - gamma correction - shutter speed - analog gain - 16 backlight compensation zones - black clamp level - white balance adjustment - power down modes ? stand-alone 25fps pal operation with all automatic features ? single crystal operation: video timing on-chip ? single 5v power supply ? less than 0.5 watt power dissipation description the ch5001 is a single chip active pixel cmos color video camera with digital video output in several formats. using sophisticated noise correction circuitry to minimize fixed pattern noise and dark current effects, the ch5001 provides a supurb quality picture in a low cost device. the ch5001 uses a proprietary autoshutter algorithm to dynamically control the shutter time, analog gain, and black clamp level, providing optimum picture and contrast under all lighting conditions. the ch5001 also incorporates extensive on-chip programmable digital signal processing to maximize the usefulness of the device in processor driven applications. this includes 16 programmable zones for backlight compensation, allowing the user to adjust the image to their unique lighting environment. additionally, at power-up the backlight compensation zone, power-up condition, and direct a/d output modes are selectable without iic control by using the pud pins. requiring a minimum of parts for operation, the ch5001 provides a low cost camera for the next generation video conferencing, videophone, and surveillance products. patent number x,xxx,xxx patents pending figure 1: block diagram color control shutter control filter rgb to ycrcb gamma correct matrix multiply black clamp photocell array g r g b 352 columns 288 rows r o w t i m i n g row decode gain mono tout/toutb ovr i c bus 2 sd sc as output format y[7:0] c[7:0] pud[6:0] crs a/d timing & mode control href pdp* hs* vs* clkout reset* xi/fin xo
2 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A figure 2: 52 contact ceramic lcc (top view) 26 .600 in sq image array 1mm 1 7 8 20 21 33 34 46 47 2 3 4 48 49 50 51 52 5 6 9 10 11 12 13 15 16 17 18 19 22 23 24 25 28 29 30 31 32 35 36 37 38 39 40 42 43 44 45 vrs agnd tout toutb avdd cmb2 mono as reset* dgnd agnd dgnd pdp* dvdd xo xi/fin avdd vref crf agnd arf2 arf avdd c6, pud6 c4, pud4* y7 dvdd clkout dgnd c0, pud0* c1, pud1* c2, pud2* c3, pud3* c5, pud5* c7 crs sd sc dvdd 40 41 14 27 y3 ovr y6 y5 y4 y2 y1 y0 href dvdd hs* vs* dgnd
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 3 figure 3: ch5001 array image offset image array 1301 um 60 um cmos die package centerline package centerline 3670.3 um 4906.7 um
4 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A table 1. pin descriptions pin type symbol description 21-14 out y[7:0] video output provides the luminance data of the digital video output. 7, 11, 22, 34 power dvdd digital supply voltage these pins supply the 5v power to the digital section of ch5001. 4, 8, 24, 36 power dgnd digital ground provides the ground reference for the digital section of ch5001. these pins must be connected to the system ground. 32-25 out c[7:0] video output chrominance data of the digital video output are provided by these pins. 33 out crs cr select crs specifies the crcb data sequence. crs is an alternating signal. crs=1 indicates that c[7:0] carry the cr data. crs=0 indicates c[7:0] carry the cb data. 23 out clkout video pixel clock output this pin outputs a buffered clock signal which can be used to latch data output by pins y[7:0] and c[7:0]. 9 out vs* vertical sync output (active low) outputs a vertical sync pulse. 10 out hs* horizontal sync output (active low) outputs a horizontal sync pulse. 12 out ovr over range this pin is high when the a/d converter input is beyond the full scale range of the a/d. 13 out href horizontal reference active video timing signal. this output is high when active data is being output from the device, and low otherwise. 6 in sc serial clock iic clock input pin. 5 in/out sd serial data iic data input/output pin. 2 in as chip address select (internal pullup) this pin selects the iic address for the device. as = 1 address = 100 0101 as = 0 address = 100 0110 3 in reset* chip reset (active low, internal pullup) puts all registers into power-on default states. the state at pin sd must be high during reset for proper initialization. 38 in/out xo crystal output a 27 mhz ( 50 ppm, parallel resonance) crystal may be attached between xo and xi/fin. 39 in xi/fin crystal input or external input a 27 mhz ( 50 ppm, parallel resonance) crystal should be attached between xo and xi/fin. an external cmos compatible clock can be connected to xi/fin as an alternative.
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 5 pin type symbol description 40, 46, 51 power avdd analog supply voltage supplies the 5v power to the analog section of the ch5001. 41 out vref voltage reference vref provides a 1.235v reference. a 0.01 m f decoupling capacitor should be connected between vref and agnd. 37, 43, 48 power agnd analog ground these pins provide the ground reference for the analog section of ch5001. pins must be connected to the system ground to prevent latchup. 42 out crf column filter crf provides a 2.5 v reference. a 0.1 m f decoupling capacitor should be connected between crf and agnd. 49, 50 in/out tout, toutb test mode i/o pins for test purposes only. should be nc. 44, 45 out arf2, arf array filters a 0.1uf decoupling capacitors should be connected between each of the pins and agnd. 47 out vrs array bias filter vrs provides a 2.1v reference. a 0.1 m f decoupling capacitor should be connected between vrs and agnd. 1 in mono monochrome (active high, internal pulldown) digital pin to select color / monochrome operation. 1= monochrome 0=color 35 in pdp* power down pin (active low, internal pullup) 0 = power down 52 out cmb2 bias filter a 0.1 m f decoupling capacitor should be connected between cmb2 and agnd. 31-25 in pud[5:0]* pud[6] power up detect (internal pull-up) these pins are shared with the c[6:0] chrominance output function. at power-up they are inputs controlling the default value of iic register bits m0, addo, pd, asw[3:0]. attach 100k ohms to dgnd to pull low. note: pud[5:0]* are logically inverted table 1. pin descriptions
6 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A functional description the ch5001 accepts a light input to a photosensitive array, and produces a digital video stream in response. each photodiode in the array is covered with a red, green or blue filter whose spectral response is designed to provide a proper color picture when displayed on a standard monitor/tv. the internal functions performed are: ? scanning of the photodiode array into a serial data stream. ? programmable gain sample and hold with programmable offset. ? digitization of data stream. ? transform the data from the color filter domain to rgb domain. ? programmable gamma correction and rgb offset. ? conversion from rgb to ycrcb domain. ? interpolate/decimate data to desired resolution ? formatting of the data stream for the desired type of output. ? automatic shutter, gain and black setting. ? timing signal generation. ? bus control. ? power up control of key register bits scanning of the photodiode array: the ch5001 serializes the data captured in the photo array, and outputs one pixel of data each clock period. the first row is output a programmable number of lines after the leading edge of the vertical sync output. after the entire row has been output, the next row will be addressed and output. correlated double sampling tech- niques are used during readout to reduce fixed pattern noise. after this transfer is complete, pixel data is seri- ally sent to the programmable gain amplifier and then to an a/d converter. programmable gain sample and hold: the programmable gain is divided into two sections. the first gain block is controlled by pgsh[2:0] and the second by the adfs control. adfs can be treated as the msb of the gain control, and a plot of gain versus control setting is shown below. the programmable gain section also provides a bias adjustment, under the con- trol of the an chip dac. when the asbe bit is a one (default) this dac value is determined automatically, via a feedback loop which monitors the a/d output signal. when the asbe bit is a zero, the dac can be con- trolled via bclmp[7:0]. 0 2 4 6 8 10 12 14 16 0 5 10 15 20 25 30 gaindb n gain n
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 7 a/d conversion: the data out of the programmable sample and hold is input to an 8-bit a/d. the output of the a/d is sent to the datapath section, and can alternatively be sent directly to the y[7:0] pins. the a/d has an over-range output which is available as an external pin. transformation to rgb domain: each pixel output from the a/d has been exposed to light which was filtered by one of three types of colored filter, red, green or blue. to create rgb values for each pixel, four neighboring pixels are combined in different strengths in a matrix multiplier. the gains used in the matrix multiplier are programmable via the cscxx[7:0] registers. programmable gamma correction of rgb signals: the rgb signals are next applied to a gamma correction block with selectable gamma settings of 1.0, 1.6 and 2.2, controlled via gam[1:0]. following gamma correction, a programmable offset is added to each term, via controls ros[4:0], gos[4:0] and bos[4:0]. convert to the ycrcb domain: a color space conversion is then applied to the gamma corrected rgb signals to convert to the y, cr, cb domain. the cr and cb gain can be independently adjusted in this block with the crg and cbg controls. interpolate/decimate data to desired resolution: the output resolution is determined by the mode register bits m[2:0]. when a ccir601 mode is selected (m[2:0] = 4,5), a signal compatible with chrontel's ch7202 input will be gener- ated. this entails interpolating the luminance signal by a factor of two, time multiplexing the crcb signals, delay matching the crcb signal to the filtered y signal, and selecting the 8-bit output mode (register 00h, bit 0). when a cif output is selected (m[2:0] = 1), the cr,cb resolution will be decimated by a factor of two in both hori- zontal and vertical directions. this entails band-limiting the crcb data, decimating in the horizontal direction, stor- ing one line of decimated crcb data and averaging the delayed line with the current line. this will position the chrominance samples according to h.261 standards, and is register controlled (cvl, chl). when cif2 is selected, the chrominance data is decimated in the horizontal direction only. when qcif output is selected (m[2:0] = 3), the y resolution will be decimated by a factor of two in both horizontal and vertical directions and the crcb data will be decimated by a factor of four in both the horizontal and vertical directions. this requires bandlimiting the y and crcb data, decimating in the horizontal direction. the y data is not be decimated in the vertical direction (since two lines have already been averaged in the matrix multiplier sec- tion) but the crcb data will generated a four line average in the vertical direction. when cif2 is selected, the chrominance data is decimated by four in the horizontal direction, and by two in the vertical direction. format the data stream for the desired type of output: in addition to the selection of ccir601 or the different cif and qcif modes, the output format can be selected between 16-bit data (8-bit y and 8-bit time multiplexed crcb), and 8-bit data (time multiplexed cb,y,cr,y data at twice the rate).
8 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A automatic shutter, gain and black setting: the ch5001 contains circuitry to automatically adjust the shutter (esle, eslh and esll), programmable gain (pgsh[2:0]) and black level (bclmp[7:0]. these feedback loops are independently controlled by the three control bits auto-shutter shutter enable (asse), auto-shutter gain enable (asge) and auto-shutter black enable (asbe). when each of these loops is enabled (default), a read to the corresponding shutter, gain or black level reg- ister will result is a readout of the control signal the algorithm has determined to be correct. data can continue to be written to the control registers, but will not have an effect until the automatic feedback control is disabled. the feedback loops will attempt to force a percentage of the image (controlled by asbc[4:0] and asbt[2:0]) to black, and a certain percentage of the image (controlled by aswc[7:0]) inside the selectable window to white. this will create an output image which maximizes the dynamic range of the signal, without creating overflow or underflow problems within the a/d or the datapath. timing signal generation: the ch5001 generates all required internal and external timing signals. the following timing signals are output by the ch5001: ? clock out (clkout) - this output is used to latch the outputs of the y]7:0], c[7:0], crs, hs*, vs* and href. ? cr select (crs) - the cr select signal determines whether the chroma sample being output is a cr or cb data. ? horizontal sync (hs*) - the horizontal sync output is used to determine the start of a new line. polarity is selectable via control bit hsp. ? vertical sync (vs*) - the vertical sync output is used to determine the start of a new frame. polarity is selectable via control bit vsp. ? horizontal reference (href) - the horizontal reference is high when active data is output from the ch5001. the following timing parameters are programmable: ? shutter - this control is divided among three registers, electronic shutter length extended (esle) , electronic shutter length high (eslh) and electronic shutter length low (esll). the control range is from ~1us, to just under the frame duration. ? frame rate - in non-ccir601 modes, the frame rate is selectable via the fr register. the ch5001 has two methods for adjusting the frame rate of the device. ? horizontal start - in non-ccir601 modes, the delay between the hs* output and the output of active data from the ch5001 is programmable via the hs register. the polarity of this output is programmable. ? vertical start - in non-ccir601 modes, the delay between the vs* output and the output of active data from the ch5001 is programmable via the vs register. the polarity of this output is programmable. ? frame rate adjustment method ? the ch5001 has two methods for adjusting the frame rate of the device. the first method is to add additional black lines to each frame after reading out the active data. the second method is to have each frame remain a constant number of lines long, and have each line contain a variable number of blank pixels after reading out the active data. in this mode, all clock signals are 1/2 of the normal rate. ? auto shutter speed ? the auto-shutter loop speed can be controlled via asspd[2:0]. bus control: the ch5001 is controlled via a 2 pin serial interface. the description of this interface, and all registers accessible via the interface is described later in the data sheet.
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 9 power up control: seven bits within the ch5001 register map can have their default value determined at the time of power-up, or when the reset pin is exercised. this is accomplished by using a high valued pull-down resistor on the c[6:0] pins. at power-up, the output buffers on these pins are tri-stated, and the pin is pulled high by an internal high impedance pull-up device. this pull-up can be overridden by connecting a 100k ohm resistor externally to ground. after three frames, the level at the c[6:0] pins is latched, and seven register bits are set or cleared depending upon the corre- sponding pin's level. the c[6:0] pins functions are then returned to outputs of the chroma data. the power-up con- trol affects the following register bits: table 2. power up default control pin register bit function c5 (pud5*) 22h 3 addo the a/d direct output mode can be selected at power up. this may be desirable for applications which want to use raw data. logically inverted input no pull-down resistor - datapath processing pull-down resistor - a/d direct output c4 (pud4*) 19h 4 pd the power down bit can be enabled at power up. this may be desirable in usb cameras which have power limitations at power up. logically inverted input no pull-down resistor - normal power-up pull-down resistor - power-up in low-power mode c6 (pud6) 00h 1 m0 the mode[0] bit can be used to select between ntsc or pal output at power up. no pull-down resistor - pal operation pull-down resistor - ntsc operation c[3:0] (pud[3:0]*) 1eh 3:0 asw[3:0] the auto-shutter window can be selected at power up. see the register description for corresponding window selection. logically inverted inputs no pull-down resistors gives window "0", center location
10 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A i 2 c port operation the ch5001 contains a standard i 2 c control port, through which the control registers can be written and read. this port is comprised of a two-wire serial interface, pins sd (bidirectional) and sc, which can be connected directly to the sdb and scb buses as shown in figure4 . the serial clock line (sc) is input only and is driven by the output buffer of the master device. the ch5001 acts as a slave and generation of clock signals on the bus is always the responsibility of the master device. when the bus is free, both lines are high. the output stages of devices connected to the bus must have an open-drain or open- collector to perform the wired-and function. data on the bus can be transferred up to 400kbit/s according to i 2 c specifications. however, in direct connections to the bus master device, the ch5001 can operate at transfer rates up to 5 mhz. figure 4: connection of devices to the bus electrical characteristics for bus devices the electrical specifications of the bus devices ? inputs and outputs and the characteristics of the bus lines connected to them are shown in figure4 . a pullup resistor (r p ) must be connected to a 5v 10% supply. the ch5001 is a device with input levels related to v dd . maximum and minimum values of pullup resistor (r p ) the value of r p depends on the following parameters: ? supply voltage ? bus capacitance ? number of devices connected (input current + leakage current = i input ) the supply voltage limits the minimum value of resistor r p due to the specified minimum sink current of 3ma at vol max = 0.4 v for the output stages: r p >= (v dd ? 0.4) / 3 (r p in k w) the bus capacitance is the total capacitance of wire, connections and pins. this capacitance limits the maximum value of r p due to the specified rise time. the equation for rp is shown below: r p >= 10 3 /c (where: r p is in k w and c, the total capacitance, is in pf) the maximum high level input current of each input/output connection has a specified maximum value of 10 m a. sclk in2 data in2 datan2 out scb (serial clock bus) sdb (serial data bus) +vdd r p slave sclk in1 data in1 datan2 out slave sclk out from master data in master datan2 out master bus master sc sd
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 11 due to the desired noise margin of 0.2v dd for the high level, this input current limits the maximum value of r p . the r p limit depends on v dd and is shown below: r p >= (100 x v dd )/ i input (where: r p is in k w and i input is in m a) transfer protocol both read and write cycles can be executed in alternating and auto-increment modes. alternating mode expects a register address prior to each read or write from that location (i.e., transfers alternate between address and data). auto-increment mode allows you to establish the initial register location, then automatically increments the register address after each subsequent data access (i.e., transfers will be address, data, data, data...). a basic serial port transfer protocol is shown in figure5 and described below. figure 5: serial port transfer protocol 1. the transfer sequence is initiated when a high-to-low transition of sd occurs while sc is high; this is the start condition. transitions of address and data bits can only occur while sc is low. 2. the transfer sequence is terminated when a low-to-high transition of sd occurs while sc is high; this is the stop condition. 3. upon receiving the first start condition, the ch5001 expects a device address byte (dab) from the master device. the value of the device address is shown in the dab data format below. note that b[2:1] is determined by the state of the as pin (see table 1 for details). 4. after the dab is received, the ch5001 expects a register address byte (rab) from the master. the format of the rab is shown in the rab data format below (note that b7 is not used). r/w read/write indicator 0: master device will write to the ch5001 at the register location specified by the address ar[5:0] 1: master device will read from the ch5001 at the register location specified by the address ar[5:0]. autoinc register address auto-increment - to facilitate sequential r/w of registers 1: auto-increment enabled (auto-increment mode). table 3. device address byte (dab) b7 b6 b5 b4 b3 b2 b1 b0 1 0 0 0 1 as* as r/w sd sc 1 - 8 9 data 1 ack condition start condition stop ch5001 1 - 8 data n 9 ack ch5001 ch5001 1 - 7 device id 8 r/w* 9 ack acknowledge acknowledge acknowledge
12 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A write: after writing data into a register, the address register will automatically be incremented by one. read: before loading data from a register to the on-chip temporary register (getting ready to be serially read), the address register will automatically be incremented by one. however, for the first read after an rab, the address register will not be changed. 0: auto-increment disabled (alternating mode). write: after writing data into a register, the address register will remain unchanged until a new rab is written. read: before loading data from a register to the on-chip temporary register (getting ready to be serially read), the address register will remain unchanged. ar[5:0] specifies the address of the register to be accessed . this register address is loaded into the address register of the ch5001. the r/w* access, which follows, is directed to the register specified by the content stored in the address register. the following two sections describe the operation of the serial interface for the four combinations of r/w* = 0,1 and autoinc = 0,1. ch5001 write cycle protocols (r/w* = 0) data transfer with acknowledge is required. the acknowledge-related clock pulse is generated by the mastertransmitter. the mastertransmitter releases the sd line (high) during the acknowledge clock pulse. the slave-receiver must pull down the sd line, during the acknowledge clock pulse, so that it remains stable low during the high period of the clock pulse. the ch5001 always acknowledges for writes (see figure6 ). note that the resultant state on sd is the wired-and of data outputs from the transmitter and receiver . figure 6: acknowledge on the bus figure7 shows two consecutive alternating write cycles for autoinc = 0 and r/w* = 0. the byte of information following the register address byte (rab) is the data to be written into the register specified by ar[5:0]. if autoinc = 0, then another rab is expected from the master device followed by another data byte, and so on. table 4. register address byte (rab) b7 b6 b5 b4 b3 b2 b1 b0 x autoinc ar[5] ar[4] ar[3] ar[2] ar[1] ar[0] sc from master sd data output by the ch5001 start condition 2 sd data output by master-transmitter 1 8 9 not acknowledge acknowledge clock pulse for acknowledgment
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 13 figure 7: alternating write cycles note: the acknowledge is from the ch5001 (slave). if autoinc = 1, then the register address pointer will be incremented automatically and subsequent data bytes will be written into successive registers without providing an rab between each data byte. an auto-increment write cycle is shown in figure8 . figure 8: auto-increment write cycle note: the acknowledge is from the ch5001 (slave). when the auto-increment mode is enabled (autoinc is set to 1), the register address pointer continues to increment for each write cycle until ar[5:0] = 26 (26 is the address of the address register). the next byte of information represents a new auto-sequencing starting address which is the address of the register to receive the next byte. the auto-sequencing then resumes based on this new starting address. the auto-increment sequence can be terminated any time by either a stop or restart condition. the write operation can be terminated with a stop condition. ch5001 read cycle protocols (r/w = 1) if a master-receiver is involved in a transfer, it must signal the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocked out of the slave. the slave-transmitter ch5001 releases the data line to allow the master to generate the stop condition or the restart condition. to read the content of the registers, the master device starts by issuing a start condition (or a restart condition). the first byte of data, after the start condition, is a dab with r/w = 0. the second byte is the rab with ar[5:0] containing the address of the register that the master device intends to read from in ar[5:0]. the master device should then issue a restart condition (restart = start, without a previous stop condition). the first byte of data, after this restart condition, is another dab with r/w*=1, indicating the master ?s intention to read data hereafter. the master then reads the next byte of data (the content of the register specified in the rab). if autoinc = 0, then another restart condition, followed by another dab with r/w* = 0 and rab, is expected from the master device. the master device then issues another restart, followed by another dab. after sd sc 1 - 8 rab 9 ack condition start condition stop 1 - 7 device 8 r/w* 9 ack ch5001 acknowledge ch5001 acknowledge 1 - 8 rab 9 ack ch5001 acknowledge 1 - 8 data 9 ack i 2 c 1 - 8 data 9 ack ch5001 acknowledge ch5001 acknowledge sd sc 1 - 8 9 rab n ack start stop ch5001 acknowledge 1 - 8 data n 9 1 - 8 9 ack data n+1 ack ch5001 acknowledge ch5001 acknowledge ch5001 acknowledge 1 - 7 device id 8 r/w* 9 ack i 2 c condition condition
14 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A that, the master may read another data byte and so on. in summary, a restart condition, followed by a dab, must be produced by the master before each of the rab and before each of the data read events. two consecutive alternating read cycles are shown in figure9 . figure 9: alternating read cycle if autoinc = 1, then the address register will be incremented automatically and subsequent data bytes can be read from successive registers, without providing a second rab figure 10: auto-increment read cycle when the auto-increment mode is enabled (autoinc is set to 1), the address register will continue incrementing for each read cycle. when the content of the address register reaches 2a, it will wrap around and start from 00h again. the auto increment sequence can be terminated by either a stop or restart condition. the read operation can be terminated with a ?stop ? condition. figure10 shows an auto-increment read cycle terminated by a stop or restart condition. the ch5001 contains 38 control registers each with a maximum of 8 usable bits to provide access to basic video attribute control functions. these registers are accessible via the 2-bit serial bus (sd & sc). the following sections describe the functions and the controls available through these registers. sd sc 1 - 8 rab 1 9 10 ack restart condition start condition stop condition master does not acknowledge 1 - 7 device 8 r/w* 9 ack ch5001 acknowledge ch5001 acknowledge 1 - 8 data 1 9 ack 1 - 7 device 8 r/w* 9 ack ch5001 acknowledge i 2 c 10 restart condition 1 - 8 rab 2 9 10 ack restart condition 1 - 7 device id 8 r/w* 9 ack ch5001 acknowledge 1 - 8 data 2 9 ack 1 - 7 device id 8 r/w* 9 ack ch5001 acknowledge i 2 c i 2 c master does not acknowledge ch5001 acknowledge master acknowledge sd sc 1 - 8 rab n 9 10 ack restart condition start condition stop condition master does not acknowledge just before stop condition 1 - 7 device 8 r/w* 9 ack ch5001 acknowledge ch5001 1 - 8 data n 9 ack 1 - 7 device 8 r/w* 9 ack ch5001 acknowledge 1 - 8 data n+1 9 ack i 2 c i 2 c
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 15 table 5. register descriptions register symbol address (hex) default value description mode/output format mof 00 0000 1011 selects the mode (ccir601, cif, or qcif) and output format. frame rate fr 01 0010 x000 sets the frame rate of the output signal. the four msbs contain the revision number. horizontal start hs 02 xx11 1101 sets the horizontal start position of the active output pixel in relationship to the hsync signal. vertical start vs 03 x0x1 0101 used to set the vertical start position of the active output pixel in relationship to the vsync signal. electronic shutter length high byte eslh 04 1111 0000 used in conjunction with eslp register to specify the duration of the electronic shutter. electronic shutter length low byte esll 05 0000 0000 used in conjunction with esll register to specify the duration of the electronic shutter. matrix coefficient 11 csc11 06 1111 1011 color space converter matrix coefficient for row 1, column 1. matrix coefficient 12 csc12 07 1100 1100 color space converter matrix coefficient for row 1, column 2. matrix coefficient 13 csc13 08 1100 1100 color space converter matrix coefficient for row 1, column 3 matrix coefficient 14 csc14 09 1100 0000 color space converter matrix coefficient for row 1, column 4. matrix coefficient 21 csc21 0a 1100 0000 color space converter matrix coefficient for row 2, column 1. matrix coefficient 22 csc22 0b 1110 0000 color space converter matrix coefficient for row 2, column 2. matrix coefficient 23 csc23 0c 1110 0000 color space converter matrix coefficient for row 2, column 3. matrix coefficient 24 csc24 0d 1100 0000 color space converter matrix coefficient for row 2, column 4. matrix coefficient 31 csc31 0e 1100 0000 color space converter matrix coefficient for row 3, column 1. matrix coefficient 32 csc32 0f 1100 0000 color space converter matrix coefficient for row 3, column 2. matrix coefficient 33 csc33 10 1100 0000 color space converter matrix coefficient for row 3, column 3. matrix coefficient 34 csc34 11 0010 1000 color space converter matrix coefficient for row 3, column 4. red offset ros 12 xxx0 0000 black balance offset for red channel. green offset gos 13 xxx0 0000 black balance offset for green channel. blue offset bos 14 xxx0 0000 black balance offset for blue channel. .
16 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A register symbol address (hex) default value description cr gain crg 15 1011 1010 gain applied to the cr color difference signal. cb gain cbg 16 1001 0011 gain applied to the cb color difference signal. psh gain gamma pshg 17 0001 1001 0-2: selects the gain of the programmable sample and hold. 4,5: selects gamma correction value clamp level bclmp 18 1000 0000 selects the level that the black level clamp adjusts to during dark pixel. miscellaneous misc 19 1000 1000 7,6,5: reserved 4: power down 3: v sync. polarity 2: h sync. polarity 1,0: border color device id did 1a 0010 0000 the four msbs hold the device id. the four lsbs hold the version id. test register tst 1b 0000 0000 test register test memory tm 1c 0000 0000 test register auto-shutter enable ase 1d 1110 0100 enables and controls the following autoshutter algorithm parameters: 7: enables the as to control the shutter 6: enables the as to control black level 5: enables the as to control programmable gain. 4,3: reserved 2-0: determines the threshold of the shutter gain setting to enable black level changes. auto-shutter window and input control bits asw 1e x100 pud[3:0] used to select the autoshutter window, display window, and select input data to algorithm: 6: autoshutter max input enable 5: autoshutter a/d or csc select 4: window display 3-0: window select auto-shutter black count threshold value asbc 1f 1111 1001 determines the threshold that compares the black sense value. auto-shutter white count threshold value aswc 20 1000 0000 determines the threshold that compares the white sense value. extended shutter bits esle 21 xxx0 0000 esle (msb) along with eslh and esll form the overall shutter length control register. miscellaneous 2 misc2 22 0001 1001 determines master clock frequency, clkout control, and a/d direct output mode miscellaneous 3 misc3 23 0011 1001 determines internal clock delay and a/d full scale value power down register pd 24 xxx1 0000 4: resetb provides software reset 3-0: reserved. address register ar 26 0000 0000 holds the address of the iic register being accessed table 5. register descriptions
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 17 table 6. register map bit: 7 6 5 4 3 2 1 0 00 cif2 elfa cvl chl m2 m1 m0 of 01 rnum3 rnum2 rnum1 rnum0 fr2 fr1 fr0 02 hs5 hs4 hs3 hs2 hs1 hs0 03 ydel vs4 vs3 vs2 vs1 vs0 04 eslh7 eslh6 eslh5 eslh4 eslh3 eslh2 eslh1 eslh0 05 esll7 esll6 esll5 esll4 esll3 esll2 esll1 esll0 06 csc117 csc116 csc115 csc114 csc113 csc112 csc111 csc110 07 csc127 csc126 csc125 csc124 csc123 csc122 csc121 csc120 08 csc137 csc136 csc135 csc134 csc133 csc132 csc131 csc130 09 csc147 csc146 csc145 csc144 csc143 csc142 csc141 csc140 0a csc217 csc216 csc215 csc214 csc213 csc212 csc211 csc210 0b csc227 csc226 csc225 csc224 csc223 csc222 csc221 csc220 0c csc237 csc236 csc235 csc234 csc233 csc232 csc231 csc230 0d csc247 csc246 csc245 csc244 csc243 csc242 csc241 csc240 0e csc317 csc316 csc315 csc314 csc313 csc312 csc311 csc310 0f csc327 csc326 csc325 csc324 csc323 csc322 csc321 csc320 10 csc337 csc336 csc335 csc334 csc333 csc332 csc331 csc330 11 csc347 csc346 csc345 csc344 csc343 csc342 csc341 csc340 12 ros4 ros3 ros2 ros1 ros0 13 gos4 gos3 gos2 gos1 gos0 14 bos4 bos3 bos2 bos1 bos0 15 crg7 crg6 crg5 crg4 crg3 crg2 crg1 crg0 16 cbg7 cbg6 cbg5 cbg4 cbg3 cbg2 cbg1 cbg0 17 reserved reserved gam1 gam0 reserved pshg2 pshg1 pshg0 18 bclmp7 bclmp6 bclmp5 bclmp4 bclmp3 bclmp2 bclmp1 bclmp0 19 reserved reserved dvdd pd vsp hsp bdr1 bdr0 1a did7 did6 did5 did4 did3 did2 did1 did0 1b 1c 1d asse asbe asge reserved reserved asspd2 asspd1 asspd0 1e asme ascsc aswd asw3 asw2 asw1 asw0 1f asbc4 asbc3 asbc2 asbc1 asbc0 asbt2 asbt1 asbt0 20 aswc7 aswc6 aswc5 aswc4 aswc3 aswc2 aswc1 aswc0 21 esle4 esle3 esle2 esle1 esle0 22 renb reserved reserved reserved addo clkoutp dvc mcf 23 adfsr reserved reserved reserved clkdly3 clkdly2 clkdly1 clkdly0 24 resetb reserved pd2 pd1 pd0 26 ar7 ar6 ar5 ar4 ar3 ar2 ar1 ar0
18 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A mode / output format register symbol: mof address: 00 h bits: 8 register mof determines the operating mode of the ic, output data format and the chrominance sample location. when bit 0 of register of is low, data will be output in 16-bit mode. when of is high, data will be time multiplexed and output on the 8-bit bus y[7:0]. in the tables below, y0 is the first pixel generated from the array on a given line, y1 is the second pixel on that line, etc. in ccir modes, y0i, y1i data are the pixels interpolated between the y0 and y1, and y1 and y2 samples. for each of the possible modes, the format of the output data is shown below. the total amount of time shown for each table is 24 cycles of mclk when elfa=0 and 48 cycles of mclk when elfa=1. the line number in each table refers to which active video line is being output. m[2:0] = 0 or 1, of = 0, cif2 = 0 (2 line pattern, clkout = 6.75mhz (elfa=0) or 3.375mhz (elfa=1)) m[2:0] = 0 or 1, of = 1, cif2 = 0 (2 line pattern, clkout = 13.5 mhz (elfa=0) or 6.75mhz (elfa=1)) m[2:0] = 0 or 1, of = 0, cif2 = 1 (1 line pattern, clkout = 6.75mhz (elfa=0) or 3.375mhz (elfa=1)) m[2:0] = 0 or 1, of = 1, cif2 = 1 (1 line pattern, clkout = 13.5 mhz (elfa=0) or 6.75mhz (elfa=1) ) bit: 7 6 5 4 3 2 1 0 symbol: cif2 elfa cvl chl m2 m1 m0 of type: r/w r/w r/w r/w r/w r/w r/w r/w default: 0 0 0 0 1 0 pud6 1 line clkout 1 2 3 4 5 6 1 y[7:0] y0 y1 y2 y3 y4 y5 1 c[7:0] 128 128 128 128 128 128 2 y[7:0] y0 y1 y2 y3 y4 y5 2 c[7:0] cb0 cr0 cb2 cr2 cb4 cr4 line clkout 1 2 3 4 5 6 7 8 9 10 11 12 1 y[7:0] 128 y0 128 y1 128 y2 128 y3 128 y4 128 y5 2 y[7:0] cb0 y0 cr0 y1 cb2 y2 cr2 y3 cb4 y4 cr4 y5 line clkout 1 2 3 4 5 6 1 y[7:0] y0 y1 y2 y3 y4 y5 1 c[7:0] cb0 cr0 cb2 cr2 cb4 cr4 2 y[7:0] y0 y1 y2 y3 y4 y5 2 c[7:0] cb0 cr0 cb2 cr2 cb4 cr4 line clkout 1 2 3 4 5 6 7 8 9 10 11 12 1 y[7:0] cb0 y0 cr0 y1 cb2 y2 cr2 y3 cb4 y4 cr4 y5 2 y[7:0] cb0 y0 cr0 y1 cb2 y2 cr2 y3 cb4 y4 cr4 y5
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 19 m[2:0] 2 or 3, of = 0 cif2 = 0 (4 line pattern, clkout = 6.75mhz (elfa=0) or 3.375mhz (elfa=1)) m[2:0] = 2 or 3, of = 1 cif2 = 0 (4 line pattern, clkout = 13.5 mhz (elfa=0) or 6.75mhz (elfa=1)) m[2:0] = 2 or 3, of = 0 cif2 = 1 (2 line pattern, clkout = 6.75mhz (elfa=0) or 3.375mhz (elfa=1)) m[2:0] = 2 or 3, of = 1 cif2 = 1 (2 line pattern, clkout = 13.5 mhz (elfa=0) or 6.75mhz (elfa=1)) m[2:0] = 4 or 5, of = 0 (repeats pattern every line, clkout =13.5 mhz) line clkout 1 2 3 4 5 6 1 y[7:0] y0 y0 y2 y2 y4 y4 1 c[7:0] 128 128 128 128 128 128 2 y[7:0] 16 16 16 16 16 16 2 c[7:0] 128 128 128 128 128 128 3 y[7:0] y0 y0 y2 y2 y4 y4 3 c[7:0] cb0 cb0 cr0 cr0 cb4 cb4 4 y[7:0] 16 16 16 16 16 16 4 c[7:0] 128 128 128 128 128 128 line clkout 1 2 3 4 5 6 7 8 9 10 11 12 1 y[7:0] 128 128 y0 y0 128 128 y2 y2 128 128 y4 y4 2 y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 3 y[7:0] cb0 cb0 y0 y0 cr0 cr0 y2 y2 cb4 cb4 y4 y4 4 y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 line clkout 1 2 3 4 5 6 1 y[7:0] y0 y0 y2 y2 y4 y4 1 c[7:0] cb0 cb0 cr0 cr0 cb4 cb4 2 y[7:0] 16 16 16 16 16 16 2 c[7:0] 128 128 128 128 128 128 3 y[7:0] y0 y0 y2 y2 y4 y4 3 c[7:0] cb0 cb0 cr0 cr0 cb4 cb4 4 y[7:0] 16 16 16 16 16 16 4 c[7:0] 128 128 128 128 128 128 line clkout 1 2 3 4 5 6 7 8 9 10 11 12 1 y[7:0] cb0 cb0 y0 y0 cr0 cr0 y2 y2 cb4 cb4 y4 y4 2 y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 3 y[7:0] cb0 cb0 y0 y0 cr0 cr0 y2 y2 cb4 cb4 y4 y4 4 y[7:0] 128 128 16 16 128 128 16 16 128 128 16 16 line clkout 1 2 3 4 5 6 7 8 9 10 11 12 1 y[7:0] y0 y0i y1 y1i y2 y2i y3 y3i y4 y4i y5 y5i 1 c[7:0] cb0 cr0 cb1 cr1 cb2 cr2 cb3 cr3 cb4 cr4 cb5 cr5
20 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A m[2:0] = 4 or 5, of = 1 (repeats pattern every line, clkout = 27mhz) bits 1 through 3 of the mof register along with elfa, bit 6 select the mode that the ic operates according to the table below. a listing of ?fr ? in a column indicates that the frame rate is adjusted through varying this parameter, and the table under the frame rate register should be used to determine this value. when modes 4 or 5 are selected, the value of the fr register is ignored, and the ic will output a frame rate compatible with the field rate of pal or ntsc. an integer number of lines will be output in each frame, with the odd frames having one line more than the even frames. bits 4, 5 and 7 ?chl ? ?cvl ? ?cif2 ? of the mof register specify the chrominance sample location with respect to the luminance samples in the horizontal and vertical directions respectfully. when chl is 0, chrominance samples are located between the luminance samples in the horizontal direction. when chl is 1, chrominance samples are aligned with alternate luminance samples. when cif2 is 0 and cvl is 0, chrominance samples are located between the luminance samples in the vertical direction. when cif2 is 0 and cvl is 1, chrominance samples are aligned with alternate luminance samples. when m[2:0] is set to mode 5, the chl and cvl bits are ignored. when the cif2 bit is high, the cvl bit is ignored, and the chrominance signal is output on every line that has luminance. line clkout 1 2 3 4 5 6 7 8 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 1 y[7:0] c b 0 y 0 c r 0 y 0 i c b 1 y 1 c r 1 y 1 i c b 2 y 2 c r 2 y 2 i c b 3 y 3 c r 3 y 3 i c b 4 y 4 c r 4 y 4 i c b 5 y 5 c r 5 y 5 i table 7. operating modes elfa m 2 m 1 m 0 operating mode y active pixels /line y active lines crcb active pixels /line crcb active lines total mclk / line total lines/ frame functional description 0 0 0 1 cif 352 288 176 144 1716 fr cif progressive scan 0 0 1 1 qcif 176 144 88 72 1716 fr qcif progressive scan x 1 0 0 ccir601 704 240 352 240 1716 263/ 262 525 line scan 4:2:2 x 1 0 1 ccir601 704 288 352 288 1728 313/ 312 625 line scan 4:2:2 x 1 1 0 reserved x 1 1 1 reserved 1 0 0 1 cif 2 352 288 176 144 fr 289 cif-289 progressive scan 1 0 1 1 qcif 2 176 144 88 72 fr 289 qcif-298 progressive scan
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 21 frame rate register symbol :fr address: 01 h bits: 3 register fr determines the frame rate. the frame rate is adjusted by increasing the number of blank lines after reading the entire array, or by inserting extra blank pixels at the end of each line readout. the method of frame rate control is determined by bit elfa in register mof. when elfa = 0, the amount of delay between the completion of reading one frame and the start of reading the next frame is varied. there are eight frame rates that can be selected in this mode, each one a fixed integer number of lines long. when elfa = 1, the amount of delay between the completion of reading one lin e , and the start of reading the next line is varied. there are seven frame rates that can be selected in this mode, each one 289 lines. in modes m[2:0] equal to 0-3, the device can operate with a 24mhz mclk or a 27mhz mclk. descriptions of some of the key parameters are shown in table 8 and table 9 . bit: 7 6 5 4 3 2 1 0 symbol: rnum3 rnum2 rnum1 rnum0 fr2 fr1 fr0 type: r r r r r/w r/w r/w default: 0 0 1 0 0 0 0 table 8. operating modes for 27 mhz mclk elfa m [2:0] fr [2:0] total lines blank lines / frame mclk / line blank mclk / line frame rate (hz) max shutter length (register value) max shutter time (ms) 0 1,3 0 0 0 525 236 1716 308 30 112,398 33 0 1,3 0 0 1 656 367 1716 308 24 140,497 42 0 1,3 0 1 0 787 498 1716 308 20 168,597 50 0 1,3 0 1 1 1049 760 1716 308 15 224,796 67 0 1,3 1 0 0 1312 1023 1716 308 12 281,209 83 0 1,3 1 0 1 1967 1678 1716 308 8 421,707 125 0 1,3 1 1 0 3934 3645 1716 308 4 843,628 250 0 1,3 1 1 1 15735 15446 1716 308 1 2,097,151 621 x 4 x 263 /262 23 / 2 2 1716 60 55,984 17 x 5 x 313 / 312 25 / 24 1728 50 67,176 20 1 1,3 0 0 1 289 3896 1080 24 140,256 42 1 1,3 0 1 0 289 4672 1856 20 168,192 50 1 1,3 0 1 1 289 6232 3416 15 224,352 66 1 1,3 1 0 0 289 7784 4968 12 280,224 83 1 1,3 1 0 1 289 11680 8864 8 420,480 125 1 1,3 1 1 0 289 23360 20544 4 840,960 249 1 1,3 1 1 1 289 93424 90608 1 2,097,151 621
22 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A bits 7-4 (rnum#) of the fr register contain the revision number of the ch5001 device. these bits are read only. when using elfa=1, if 30 hz frame rate is desired a 30mhz crystal should be used, and the 24mhz mclk control (mce=0) should be selected. all frame rates will be scaled by the value of 30/24. horizontal start register symbol: hs address: 02 h bits: 6 register hs determines the number of pixels between the leading edge of h sync and the first active pixel to be output on the y[7:0] and c[7:0] pins. the number is in units of pixels; the range is from 0 to 63 clkout and must be limited to 38 when elfa=1. when m[2:0] = 4 or 5, this register is ignored and the timing below is followed assuming 16-bit output mode. values are doubled for 8-bit output mode table 9. operating modes for 24 mhz mclk elfa m [2:0] fr [2:0] total lines blank lines / frame mclk / line blank mclk / line frame rate (hz) max shutter length (register value) max shutter time (ms) 0 1,3 0 0 0 467 178 1716 308 30 99,957 33 0 1,3 0 0 1 583 294 1716 308 24 124,839 42 0 1,3 0 1 0 700 411 1716 308 20 149,935 50 0 1,3 0 1 1 933 644 1716 308 15 199,914 67 0 1,3 1 0 0 1166 877 1716 308 12 249,892 83 0 1,3 1 0 1 1749 1460 1716 308 8 374,946 125 0 1,3 1 1 0 3497 3208 1716 308 4 749,892 250 0 1,3 1 1 1 13987 13698 1716 308 1 2,097,151 699 1 1,3 0 0 1 289 3464 648 24 124,704 42 1 1,3 0 1 0 289 4152 1336 20 149,472 50 1 1,3 0 1 1 289 5536 2720 15 199,296 66 1 1,3 1 0 0 289 6920 4104 12 249,120 83 1 1,3 1 0 1 289 10384 7568 8 373,824 125 1 1,3 1 1 0 289 20760 17944 4 747,360 249 1 1,3 1 1 1 289 83048 80232 1 2,097,151 699 bit: 7 6 5 4 3 2 1 0 symbol: hs5 hs4 hs3 hs2 hs1 hs0 type: r/w r/w r/w r/w r/w r/w default: 1 1 1 1 0 1 m[2:0] leading edge of -> h sync h delay (clkout) border (clkout) active (clkout) border (clkout) blank (clkout) total (clkout) 4 - ntsc 122 8 704 8 16 858 5 - pal 132 8 704 8 12 864
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 23 vertical start register symbol: vs address: 03 h bits: 6 register vs determines the number of lines between the leading edge of v sync and the first active line to be output on the y[7:0] and c[7:0] pins. the number is in units of lines; the range is 0 to 31 lines. when elfa = 1, this register is ignored, and there is always a one line delay between the leading edge of vertical sync and the first line with active video. the ydel (bit 6) controls the delay in the luma processing path. the value should match the setting of chl. electronic shutter length high byte symbol: eslh address: 04 h bits: 8 the eslh register, combined with the esle and esll registers determine the length of the electronic shutter. electronic shutter length low byte symbol: esll address: 05 h bits: 8 registers esle, eslh and esll specify the duration of the electronic shutter. these 21 bits are concatenated into a single 21-bit word ({esle,eslh,esll}) whose value is multiplied by 8. the shutter is enabled for this number of mclks. the duration of the shutter can, therefore, be determined from the equation (8*(65536*esle + 256*eslh + esll))/mclk. the range is from 0ms to 699ms, but is limited to a lower value in some frame rates (see frame rate register description). when the autoshutter algorithm is controlling the shutter value and this register is read out, the autoshutter generated value is read instead of the actual iic register content. bit: 7 6 5 4 3 2 1 0 symbol: ydel vs4 vs3 vs2 vs1 vs0 type: r/w r/w r/w r/w r/w r/w default: 0 1 0 1 0 1 bit: 7 6 5 4 3 2 1 0 symbol: eslh7 eslh6 eslh5 eslh4 eslh3 eslh2 eslh1 eslh0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 1 1 1 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: esll7 esll6 esll5 esll4 esll3 esll2 esll1 esll0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 0 0 0 0 0 0 0 0
24 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A matrix coefficient registers symbol: csc11-csc34 address: 06 h -11 h bits: 8 each registers csc11, csc12, csc13, csc14, csc21, csc22, csc23, csc24, csc31, csc32, csc33 and csc34 specify the color space conversion matrix values used to convert from the color space of the filters to the rgb domain dictated by television phosphors. the values are 2 ?s complement and 64 will be added to each value internally to make the range of possible values -64 to +191. there is a second set of fixed matrix multiplier coefficient values that can be multiplexed with the register values under the control of the mono pin. the matrix multiplication equation, default register values and second set of register values are shown below: red offset register symbol: ros address: 12 h bits: 5 register ros specifies the offset given to the red channel after color space conversion. the value is a 2 ?s complement number in the range of ?16 to +15. after adjustments to the matrix multiplier coefficients have been made, this value can be used to perform a black balance adjustment. bit: 7 6 5 4 3 2 1 0 symbol: csc##7 csc##6 csc##5 csc##4 csc##3 csc##2 csc##1 csc##0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: output matrix coefficient register input r 06h 07h 08h 09h pr g = 0ah 0bh 0ch 0dh * pg1 b 0eh 0fh 10h 11h pg2 pb table 10. register values for color space conversion matrix register (h) default value ?mono ? multiplexed value decimal binary decimal binary 06 -5 1111 1011 -48 1101 0000 07 -52 1100 1100 -48 1101 0000 08 -52 1100 1100 -48 1101 0000 09 -64 1100 0000 -48 1101 0000 0a -64 1100 0000 -48 1101 0000 0b -32 1110 0000 -48 1101 0000 0c -32 1110 0000 -48 1101 0000 0d -64 1100 0000 -48 1101 0000 0e -64 1100 0000 -48 1101 0000 0f -64 1100 0000 -48 1101 0000 10 -64 1100 0000 -48 1101 0000 11 40 0010 1000 -48 1101 0000 bit: 7 6 5 4 3 2 1 0 symbol: ros4 ros3 ros2 ros1 ros0 type: r/w r/w r/w r/w r/w default: 0 0 0 0 0
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 25 green offset register symbol: gos address: 13 h bits: 5 register gos specifies the offset given to the green channel after color space conversion. the value is a 2 ?s complement number in the range of ?16 to +15. after adjustments to the matrix multiplier coefficients have been made, this value can be used to perform a black balance adjustment. blue offset register symbolist address: 14 h bits: 5 register bos specifies the offset given to the blue channel after color space conversion. the value is a 2 ?s complement number in the range of ?16 to +15. after adjustments to the matrix multiplier coefficients have been made, this value can be used to perform a black balance adjustment. cr gain register symbol: crg address: 15 h bits: 8 register crg specifies the gain given to the cr channel after color space conversion. the nominal value is 186. cb gain register symbol: cbg address: 16 h bits: 8 register cbg specifies the gain given to the cb channel after color space conversion. the nominal gain is 147. bit: 7 6 5 4 3 2 1 0 symbol: gos4 gos3 gos2 gos1 gos0 type: r/w r/w r/w r/w r/w default: 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: bos4 bos3 bos2 bos1 bos0 type: r/w r/w r/w r/w r/w default: 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: crg7 crg6 crg5 crg4 crg3 crg2 crg1 crg0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 0 1 1 1 0 1 0 bit: 7 6 5 4 3 2 1 0 symbol: cbg7 cbg6 cbg5 cbg4 cbg3 cbg2 cbg1 cbg0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 0 0 1 0 0 1 1
26 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A programmable sample and hold gain register symbol: pshg address: 17 h bits: 8 register pshg specifies the gain of the programmable sample and hold before a/d conversion. there are eight gain settings ranging from a gain of 1.5x to a gain of 5.0x. when the autoshutter algorithm is controlling the gain value and this register is read out, the autoshutter generated gain value is read instead of the actual iic register content. bits 5 and 4 (gam[1:0]) control the gamma correction used, according to table 11 . clamp level register symbol: bclmp address: 18 h bits: 5 register bclmp specifies the offset level used in the black level clamp block. a value of 0 in register bclmp will nominally cause the a/d to output a value of zero for a dark cell input. the register value is 2 ?s complement and ranges from -128 at maximum brightness to +127 at minimum brigtness. this register has no effect when the asbe bit is high (default). miscellaneous register symbol: misc address: 19 h bits: 7 bits 0 and 1 of the misc register control the border color that is output on each line containing active video for eight 13.5mhz clocks before the start of active video and eight 13.5mhz clocks after active video. this is only done when the ic is placed into display modes four or five (m[2:0] = 4,5). in these modes, the luminance data has been interpolated to a pixel rate of 13.5 mh z. therefore, 8 pixels equals 592.5ns. the border colors are described in table 12. bit: 7 6 5 4 3 2 1 0 symbol: reserved reserved gam1 gam0 reserved pshg2 pshg1 pshg0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 0 0 0 1 1 0 0 1 table 11. gamma correction gam1 gam0 gamma 0 0 1.0 0 1 1.6 1 0 2.2 1 1 2.2 bit: 7 6 5 4 3 2 1 0 symbol: bclmp7 bclmp6 bclmp5 bclmp4 bclmp3 bclmp2 bclmp1 bclmp0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 0 0 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: reserved reserved reserved pd vsp hsp bdr1 bdr0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 0 0 pud4* 0 0 0 0
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 27 bits 2 and 3 (hsp and vsp) of the misc register control the polarity of the h and v sync signals. bit 4 (pd) of the misc register places the ic in a power down mode. when pd=0, clocks to all digital circuitry are disabled and analog circuitry bias currents are shut down. when pd=1, the ic is placed in its normal operating mode according to the user inputs. the default value of this bit is set using the pud4 input. device id register symbol: did address: 1a h bits: 8 register did is a read only register which holds the device id number of the ch5001. test register symbol: tst address: 1b h bits: 8 tst is a test register. test memory register symbol: tm address: 1c h bits: 8 tm is a test register. auto-shutter enable symbol: ase table 12. border colors bdr 1 bdr 0 color y value cr value cb value 0 0 black 16 128 128 0 1 blue 40 110 240 1 0 green 144 33 53 1 1 white 235 128 128 bit: 7 6 5 4 3 2 1 0 symbol: did7 did6 did5 did4 did3 did2 did1 did0 type: r r r r r r r r default: 0 0 1 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: lm done ls select lm test ioc1 ioc0 csh2 csh1 csh0 type: r r/w r/w r/w r/w r/w r/w r/w default: 0 0 0 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: tm7 tm6 tm5 tm4 tm3 tm2 tm1 tm0 type: r r r r r r r r default: 0 0 0 0 0 0 0 0
28 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A address: 1d h bits: 8 bits 0-2 of the ase register control the speed of the auto-shutter loop. values of 0-4 are valid. bits 3-4 of the ase register are reserved, and should be left at their default value. bit 5 of the ase register enables the autoshutter algorithm to adjust the gain of the programmable sample and hold. a 1 in this location allows the autoshutter algorithm to control this gain. a zero in this location disables the autoshutter algorithm from controlling this value, and allows bits 2-0 of register pshg (17h) to control the gain. bit 6 of the ase register enables the autoshutter algorithm to adjust the black level (bias) of the readout signal prior to a/d conversion. a 1 in this location allows the autoshutter algorithm to control the black level. a 0 in this location disables the autoshutter algorithm from controlling this value and allows bits 7-0 of register bclmp (18h) to control the black level. bit 7 of the ase register enables the autoshutter algorithm to adjust the shutter duration. a 1 in this location allows the autoshutter algorithm to control the shutter. a zero in this location disables the autoshutter algorithm from controlling this value and allows registers esle, eslh and esll to control the shutter duration. auto-shutter window / input control symbol: asw address: 1e h bits: 7 bits 0, 1, 2 and 3 of the asw register determine the active window that is used to operate the autoshutter algorithm. there are 16 possible windows, which are shown in figure 1 1 . the default value of these bits can be set using the pud [3:0] inputs. this allows the backlight compensation window to be set without using iic control. bit 4 of the asw register enables the selected window to be highlighted in the image which is output from the ch5001. all image outside of the window will be reduced in amplitude. bits 5 and 6 of the asw register determine which data is input to the autoshutter algorithm, according to table 13 . figure 11: asw register possible windows bit: 7 6 5 4 3 2 1 0 symbol: asse asbe asge reserved reserved asspd2 asspd1 asspd0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 1 1 0 0 1 0 0 bit: 7 6 5 4 3 2 1 0 symbol: asme ascsc aswd asw3 asw2 asw1 asw0 type: r/w r/w r/w r/w r/w r/w r/w default: 1 0 0 pud3* pud2* pud1* pud0* 0 1 2 3 4 6 8 5 7 9 10 11 12 13 14 15
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 29 auto-shutter black count threshold symbol:asbc address: 1fh bits: 8 bits 2-0 of register asbc determine the black threshold used by the auto-shutter algorithm. the value used is 8*asbt+3. bits 7-3 of register asbc determine the number of pixels below the asbt level. when the number of pixels is less than this value, the autoshutter algorithm will adjust the black level downwards. when the number of pixels is greater than this value, the black level will be adjusted upwards. auto-shutter white count threshold symbol: aswc address: 20 h bits: 8 the number of pixels above the white level is compared to the aswc value to determine the direction that the shutter value should be changed. electronic shutter length extended value symbol: esle address: 21 h bits: 5 the esle register, combined with the eslh and esll registers, determine the length of the electronic shutter. table 13. autoshutter algorithm input asme ascsc input to autoshutter algorithm 0 0 ?y[7:0] ? output of color space conversion 0 1 a/d output 1 x max (a/d, y[7:0]) bit: 7 6 5 4 3 2 1 0 symbol: asbc4 asbc3 asbc2 asbc1 asbc0 asbt2 asbt1 asbt0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 1 1 1 1 0 0 1 bit: 7 6 5 4 3 2 1 0 symbol: aswc7 aswc6 aswc5 aswc4 aswc3 aswc2 aswc1 aswc0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 1 0 0 0 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: esle4 esle3 esle2 esle1 esle0 type: r/w r/w r/w r/w r/w default: 0 0 0 0 0
30 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A miscellaneous register 2 symbol:misc2 address: 22h bits: 7 bit 0 (master clock frequency) of register misc2 refers to the ch5001 the master clock (xo) frequency. a 0 should be written to this location when the master clock is 24mhz. a 1 should be written to this location when the master clock is 27mhz. when modes four or five are selected (m[2:0] =4,5), the master clock must be 27mhz. bit 1 (data valid control) of register misc2 selects whether or not the clkout signal is gated. when this bit is a 0, the clkout pin will produce a continuous clock output signal. when bit dvc is a 1, the clkout will be gated, and will be active when active data is being output from the ch5001, and inactive when non-active data is present at the outputs. bit 2 (clkout polarity) of register misc2 selects the polarity of the clkout signal. a 0 in this location means output data has been latched with the positive edge of the clkout signal. a 1 in this location means output data has been latched with the negative edge of the clkout signal. bit 3 (a/d direct output) of register misc2 selects whether the output signal is directly from the a/d converter or after the datapath postprocessing. in both cases, the relationship between the hsync, vsync and active video will remain the same. when a 1 is written to this location, the y[7:0] and c[7:0] will output luma and chroma data from the datapath circuitry. when a 0 is written to this location, the y[7:0] pins will contain the a/d data directly. with no postprocessing and the c[7:0] outputs will be set to 128. if 8-bit output mode is selected, the a/d output will be multiplexed with the decimal value 128 to enable connection to an 8-bit video encoder resulting in a black and white image. bits 4-6 of register misc2 are reserved. bit 7 (refresh enable) enables memory refresh. miscellaneous register 3 symbol: misc3 address: 23 h bits: 6 bits 0-3 (clock delay) of register misc3 determine the clock delay between internal clock signals. the recommended value is 9. bit 7 (a/d full scale range) of register misc3 changes the full scale range of the a/d converter. a 0 in this location sets the a/d full scale range at + 1 volt. a 1 in this location sets the a/d full scale range at + 0.25 volt. this bit can be combined with the pshg[2:0] to form a 4-bit control. bit: 7 6 5 4 3 2 1 0 symbol: renb reserved reserved reserved addo clkoutp dvc mcf type: r/w r/w r/w r/w r/w r/w r/w r/w default: 0 0 0 1 pud5* 0 0 1 bit: 7 6 5 4 3 2 1 0 symbol: adfsr reserved reserved reserved ckdly3 ckdly2 ckdly1 ckdly0 type: r/w r/w r/w r/w r/w r/w r/w r/w default: 0 0 1 1 1 0 0 1
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 31 power down register symbol: pd address: 24 h bits: 3 bits 3-0 of register pd are reserved. bit 4 of register pd is used to perform a software reset on the device. it is logically and ?d with the power on reset signal. the output of this and ?ing will be used to reset all circuitry in the ch5001, except for the resetb bit itself and the iic state machines. resetb and the iic state machines are reset by the power on reset signal only. address register symbol: ar address: 26 h bits: 8 register ar is the ch5001 address register, which holds the address of the register currently being accessed. electrical specifications notes: 1 stresses greater than those listed under absolute maximum ratings may cause permanent damage to the device. these are stress ratings only. functional operation of the device at these or any other conditions above those indicated under the normal operating condition of this specification is not recommended. exposure to absolute maximum rating conditions for extended periods may affect reliability. 2 the device is fabricated using high-performance cmos technology. it should be handled as an esd sensitive device. voltage on any signal pin that exceeds the power supply voltage by more than +0.5v can induce destructive latch. bit: 7 6 5 4 3 2 1 0 symbol: resetb reserved reserved reserved reserved type: r/w r/w r/w r/w r/w default: 1 0 0 0 0 bit: 7 6 5 4 3 2 1 0 symbol: ar7 ar6 ar5 ar4 ar3 ar2 ar1 ar0 type: r r r r r r r r default: 0 0 0 0 0 0 0 0 table 14. absolute maximum ratings symbol description min typ max units v dd relative to gnd - 0.5 7.0 v input voltage of all digital pins 1 gnd - 0.5 vdd + 0.5 v t s t o r storage temperature - 65 100 c t j junction temperature 150 c t v p s vapor phase soldering (one minute) 220 c table 15. recommended operating conditions symbol description min typ max unit dv dd digital supply voltage 4.75 5.00 5.25 v av dd analog supply voltage 4.75 5.00 5.25 v t a ambient operating temperature 0 25 40 c
32 201-0000-032 rev 3.0, 6/2/99 chrontel CH5001A figure 12: timing diagram (m[2:0] = 1, of = 1, h start = 0) note: the output pixel cb0 will be delayed by 2 times the value of the hstart register clkout cycles, if hstart is non- zero. table 16. digital inputs/outputs symbol description test condition @ta= 25 c min typ max unit voh output high voltage ioh =.400 ma 2.8 v vol output low voltage iol = 3.2 ma 0.4 v vih input high voltage 3.4 v dd v vil input low voltage gnd 0.8 v ilk input leakage current -10 10 m a table 17. timing characteristics symbol description min typ max unit t vsw vertical sync pulse width 2 lines t hsw horizontal sync pulse width 64 mclk t hd horizontal and vertical sync delay from clock 2 10 ns t p clkout period (varies with mode and output format) 37 148.2 ns t ph clkout high time 14.8 89 ns t p h clkout low time 14.8 89 ns t s p clkout to pixel data setup time 2 ns t hp clkout to pixel data hold time 2 ns t vsw vs* t hsw hs* t p t ph t pl t hd clkout y[7:0] t hp t sp cb0 y0 cr0 y1 cb2 crs
chrontel CH5001A 201-0000-032 rev 3.0, 6/2/99 33 figure 13: timing diagrams (m[2:0] = 1, of = 0, hstart = 0) figure 14: timing diagram (m[2:0] = 4 or 5, of = 1) note: see the hstart register description for the relationship between hs* and the first active data (cb0) t vsw vs* t hsw hs* clkout t hd y0 y y1 y2 y3 crs c (odd line) cr0 cb0 cb2 cr2 c (even line) 80h 80h 80h 80h t vsw vs* t hsw hs* t hd clkout y[7:0] cb0 y0 cr0 y0i cb1 crs
chrontel 2210 o ?toole avenue san jose, ca 95131-1326 tel: (408) 383-9328 tax: (408) 383-9338 www.chrontel.com email: sales@chrontel.com 1998 chrontel, inc. all rights reserved. chrontel products are not authorized for and should not be used within life support systems or nuclear facility applications wit hout the specific written consent of chrontel. life support systems are those intended to support or sustain life and whose failure to pe rform when used as directed can reasonably expect to result in personal injury or death. chrontel reserves the right to make changes at any time without notice to improve and supply the best possible product and is not responsible and does not assume any liability for misapplication or use outside the limits specified in this document. we provide no warrant y for the use of our products and assume no liability for errors contained in this document. printed in the u.s.a. ordering information part number package type number of pins voltage supply CH5001A-l lcc 52 5v chrontel CH5001A 34 201-0000-032 rev 3.0, 6/2/99 figure 15: vertical sync to video timing - elfa = 1 note: when elfa = 0, the one blank line following the falling edge of vs* is increased to the value from the vstart register. figure 16: horizontal sync to video timing note: the number of blank pixels from the leading edge of hs* to the first active pixel is determined from the hstart register. blank line 285 blank line 1 line 1 line 2 line 2 line 4 line 5 line 3 line 6 line 287 line 288 line 286 line # vs* t vsw blank blank line # vh* blank blank blank blank cb0 y0 y1 cb2 y2 cr0 t h sw


▲Up To Search▲   

 
Price & Availability of CH5001A

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X